package com.winhxd.b2c.message.sms.enums;

/**
 * 短信发送返回状态枚举
 * */
public enum SmsReturnStatusEnum {
	SUCCESS("0","短信发送成功"),
	SECURITYTIMESERROR("97","安全检查-时间间隔不通过"),
	SECURITYCOUNTERROR("98","安全检查-发送总次数不通过"),
	HTTPCLIENTERROR("99","HttpClient请求错误"),
	SMSCONTENTERROR("100","短信内容有误"),
	USERNOTFOUNDERROR("101","无此用户"),
	PASSWORDERROR("102","密码错误"),
	SUBMITOVERSPEEDERROR("103","提交过快(提交速度超过流速限制)"),
	SYSTEMERROR("104","系统繁忙(因平台侧原因，暂时无法处理提交的短信)"),
	SENSITIVESMSERROR("105","敏感短信(短信内容包含敏感词)"),
	SMGTOOLONGERROR("106","消息长度错误(>536或<=0)"),
	MOBLIEFORMATERROR("107","包含错误的手机号码"),
	OUTOFMOBLIEBOUNDSERROR("108","手机号码个数超限(群发>50000或<=0;单发>200或<=0)"),
	NOTENOUGHAMOUNTERROR("109","余额不足(该用户可用短信数已使用完)"),
	NOTINSENDTIMEERROR("110","不在发送时间内"),
	OUTOFMONTHLYERROR("111","超出该账户当月发送额度限制"),
	NOPRODUCTERROR("112","无此产品,用户没有订购该产品"),
	EXTNOFORMATERROR("113","extno格式错(非数字或者长度不对)"),
	NOTAPPROVEDERROR("115","自动审核驳回"),
	SIGNIDENTIFYERROR("116","签名不合法，未带签名(用户必须带签名的前提下)"),
	IPIDENTIFYERROR("117","IP地址认证错,请求调用的IP地址不是系统登记的IP地址"),
	NOPERMISSIONERROR("118","用户没有相应的发送权限"),
	USEROVERDUEERROR("119","用户已过期"),
	NOTINWHITELISTERROR("120","测试内容不是白名单"),
	PARAMETERERROR("1","阅信平台参数异常"),
	MOBLIEFORMATERROR_YX("2","包含错误的手机号码"),
	EXTENDPARAMETERERROR("3","阅信平台扩展参数异常"),
	SENDTIMEERROR("4","发送时间参数异常"),
	CONTENTERROR("5","短信内容解析异常"),
	IPIDENTIFYERROR_YX("10","IP认证失败"),
	USERERROR_YX("11","帐号密码认证失败"),
	FAIL_MANDAO("-1","漫道短信发送失败"),

	/**
	 * 微网通接口返回状态码
	 */
	WWT_SUCCESS("wwt_0","短信发送成功"),
	WWT_ERROR("wwt_-99","异常"),
	WWT_PARAMERROR("wwt_101","提交参数不可为空，或参数格式错误"),
	WWT_DATEFORMATERROR("wwt_102","发送时间格式不正确,正确格式为yyyy-MM-ddHH:mm:ss"),
	WWT_EMSFORMATERROR("wwt_201","Ems格式转换错误"),
	WWT_TMSCONTENTERROR("wwt_202","Tms内容异常"),
	WWT_MIXAPPENDSMILCONTENTERROR("wwt_203","Mix格式彩信增加Smil文件错误"),
	WWT_SMSTYPEERROR("wwt_1007","错误的信息类型"),
	WWT_OUTMAXCUSTOMERERROR("wwt_1008","超过最大并发提交用户数"),
	WWT_MOBLIEERROR("wwt_1009","号码为空或超过最大提交号码个数"),
	WWT_SMSCONTENTERROR("wwt_1010","信息内容为空或超过最大信息字节长度"),
	WWT_OUTCONPANYNUMBERERROR("wwt_1011","超过最大企业号码长度,或企业号码不包含"),
	WWT_ACCOUNTPWDERROR("wwt_1013","账号密码不正确或账号状态异常(账号错误,1:账号已失效,3:密码错误)"),
	WWT_ACCOUNTSUBMITORIPERROR("wwt_1014","账户提交方式不正确或Ip受限"),
	WWT_ACCOUNTSUBMITSPEEDLIMITERROR("wwt_1015","提交速度受限:XXX条/秒，指用户的提交速度大于规定的单个用户的最大提交速度(默认5000次/秒)"),
	WWT_NOPRODUCTORSTARTERROR("wwt_1016","产品不存在或未开启"),
	WWT_SMSTYPEPRODUCTTYPEERROR("wwt_1017","提交信息类型与产品信息类型不符合"),
	WWT_OUTPRODUCTSENDDATEERROR("wwt_1018","超过产品发送时段"),
	WWT_MMSNOTITLEERROR("wwt_1019","提交彩信必须有标题"),
	WWT_SMSLENGTHERROR("wwt_1020","提交短信不可超过XXX个字"),
	WWT_MMSSIZEERROR("wwt_1021","提交彩信不可超过XXXK"),
	WWT_SMSSPLITERROR("wwt_1022","消息拆分失败，指长短信在进行拆分后的信息条数等于0或者大于8"),
	WWT_INVAILDCHARGINGERROR("wwt_1023","无效计费条数"),
	WWT_ACCOUNTBALANCEERROR("wwt_1025","Account:XXX 余额不足或者计费异常"),
	WWT_SUBMITDISPARCHERERROR("wwt_1026","提交至调度中心失败"),
	WWT_SMSSAVEERROR("wwt_1027","提交成功，信息保存失败"),
	WWT_ACCOUNTNOPRODUCTERROR("wwt_1028","账户%s无对应的产品%d"),
	WWT_EXPRODUCTMOBLIEERROR("wwt_1029","扩展产品%d不可提交多个号码"),
	WWT_SCHEDULEDTIMEERROR("wwt_1031","提交时间[%s]+31天>定时发送时间[%s]>提交时间[%s] 规则不成立"),
	WWT_SIGNPRODUCTERROR("wwt_1032","自由签名的产品101161801,签名格式不正确"),
	WWT_PRODUCTREGSIGNERROR("wwt_1033","产品%d的正则签名%s配置有误"),
	WWT_FORCESIGNPRODUCTERROR("wwt_1035","强制签名的产品%d,签名格式不正确"),
	WWT_UNLOADFORCESIGNERROR("wwt_1037","未成功加载账户强制签名报备模块"),
	WWT_FORCESIGNNORECORDSERROR("wwt_1038","强制签名的产品%d,签名%s未报备"),
	WWT_LOADWHITEERROR("wwt_1039","未成功加载白名单模块"),
	WWT_PRODUCTIDCREATEERROR("wwt_1040","消息提交成功，但消息编号生产失败"),
	WWT_LOADCONTENTERROR("wwt_1041","未成功加载账户内容模板模块"),
	WWT_CONTENTERROR("wwt_1042","内容不符合模板"),
	WWT_LOADACCOUNTSAFEERROR("wwt_1043","未成功加载账户安全登录模块"),


    /**
     * 百悟短信接口返回状态码
     */
	BW_ERROR_100("bw_100","余额不足"),
	BW_ERROR_101("bw_101","账户关闭"),
	BW_ERROR_102("bw_102","短信内容超过1000字（包括1000字）或为空"),
	BW_ERROR_103("bw_103","手机号码超过200个或合法手机号码为空或者与通道类型不匹配"),
	BW_ERROR_104("bw_104","corp_msg_id超过50个字符或没有传corp_msg_id字段"),
	BW_ERROR_106("bw_106","用户名不存在"),
	BW_ERROR_107("bw_107","密码错误"),
	BW_ERROR_108("bw_108","指定访问ip错误"),
	BW_ERROR_109("bw_109","业务代码不存在或者通道关闭"),
	BW_ERROR_110("bw_110","扩展号不合法"),
	BW_ERROR_009("bw_9","访问地址不存在"),

	/**
	 * 百悟语音短信接口返回状态码
	 */
	BW_VOICE_ERROR_000000("bw_000000","成功"),
	BW_VOICE_ERROR_100001("bw_100001","帐号为空"),
	BW_VOICE_ERROR_100002("bw_100002","加密签名为空"),
	BW_VOICE_ERROR_100003("bw_100003","操作类型为空"),
	BW_VOICE_ERROR_100004("bw_100004","被叫号码为空"),
	BW_VOICE_ERROR_100005("bw_100005","业务代码为空"),
	BW_VOICE_ERROR_100006("bw_100006","时间戳为空"),
	BW_VOICE_ERROR_100007("bw_100007","时间戳过期"),
	BW_VOICE_ERROR_100008("bw_100008","业务类型不匹配"),
	BW_VOICE_ERROR_100009("bw_100009","业务代码不可用"),
	BW_VOICE_ERROR_100010("bw_100010","手机号码不合法"),
	BW_VOICE_ERROR_100011("bw_100011","余额不足"),
	BW_VOICE_ERROR_100012("bw_100012","Ip不合法"),
	BW_VOICE_ERROR_100013("bw_100013","相同手机请求过于频繁。 30秒内向同一个电话号码发送语音验证码，超过了1次"),
	BW_VOICE_ERROR_100015("bw_100015","时间戳格式错误"),
	BW_VOICE_ERROR_100022("bw_100022","通道均不可用"),
	BW_VOICE_ERROR_100024("bw_100024","other参数长度不合法"),
	BW_VOICE_ERROR_100301("bw_100301","该账户为推送获取状态报告"),
	BW_VOICE_ERROR_999999("bw_999999","系统内部错误"),

	BW_VOICE_ERROR_100101("bw_100101","账号不存在"),
	BW_VOICE_ERROR_100102("bw_100102","账号已经关闭"),
	BW_VOICE_ERROR_100103("bw_100103","Sig鉴权失败"),
	BW_VOICE_ERROR_100104("bw_100104","该账户为后付费"),

	BW_VOICE_ERROR_100201("bw_100201","验证码为空"),
	BW_VOICE_ERROR_100202("bw_100202","验证码不合法"),


	/**
	 * 百悟语音短信 推送通知接听失败错误码
	 */
	BW_VOICE_ERROR_00001("bw_00001","关机"),
	BW_VOICE_ERROR_00002("bw_00002","停机"),
	BW_VOICE_ERROR_00003("bw_00003","暂时无法接通"),
	BW_VOICE_ERROR_00004("bw_00004","正在通话中"),
	BW_VOICE_ERROR_00005("bw_00005","空号"),
	BW_VOICE_ERROR_00006("bw_00006","无人接听"),
	BW_VOICE_ERROR_00007("bw_00007","用户拒接"),
	BW_VOICE_ERROR_00008("bw_00008","呼叫转移"),
	BW_VOICE_ERROR_00009("bw_00009","接通无人回话"),
	BW_VOICE_ERROR_00010("bw_00010","正常振铃"),
	BW_VOICE_ERROR_00011("bw_00011","彩铃"),
	BW_VOICE_ERROR_00012("bw_00012","完整振铃未摘机"),
	BW_VOICE_ERROR_00013("bw_00013","呼叫被拦截"),
	BW_VOICE_ERROR_00014("bw_00014","线路忙"),
	BW_VOICE_ERROR_00015("bw_00015","网络忙"),
	BW_VOICE_ERROR_00016("bw_00016","未知"),
	BW_VOICE_ERROR_00017("bw_00017","提交运营商失败"),
	BW_VOICE_ERROR_00018("bw_00018","黑名单拦截"),
	BW_VOICE_ERROR_10001("bw_10001","呼入限制"),
	BW_VOICE_ERROR_10002("bw_10002","呼出限制"),
	BW_VOICE_ERROR_10003("bw_10003","开通来电提醒"),
	BW_VOICE_ERROR_10004("bw_10004","传真机摘机识别"),
	BW_VOICE_ERROR_10005("bw_10005","自动应答机摘机识别"),
	BW_VOICE_ERROR_10006("bw_10006","自然人摘机识别");




	private String statusCode;// 短信发送状态代码
	
	private String remark;// 描述
	
	private SmsReturnStatusEnum(String statusCode, String remark) {
        this.statusCode = statusCode;
        this.remark = remark;
    }

	/**
	 * 获取短信发送状态代码
	 * */
	public String getStatusCode() {
		return statusCode;
	}

	/**
	 * 获取短信发送状态说明
	 * */
	public String getRemark() {
		return remark;
	}
}
